<template>
  <div id="doMyself-components-box" >
    <customer-conctact-customer v-if="nowPage==='customer'" :init-data="initData"></customer-conctact-customer>
  </div>
</template>
<script>
import customer from '../components/customer';
/* mixin */
import ThemeMixin from '@src/mixins/themeMixin/index.ts'

export default {
  name: 'customer-contact-home',
  mixins: [ThemeMixin],
  props: {
    initData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      nowPage: 'customer'
    };
  },
  components: {
    [customer.name]: customer,
    // [visitor.name]: visitor
  }
};
</script>
<style lang="scss" scoped>
.top-menu {
  background: #fff;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  align-items: center;
  nav {
    width: 194px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    font-size: 12px;
    border: 1px solid #d2d6de;
    overflow: hidden;
    cursor: pointer;
  }
  nav:nth-child(1) {
    border-right: none;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
  }
  nav:last-child {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
  }
  .nav-checked {
    @include backgroundColor();
    @include borderColor();
    color: #fff;
  }
}
</style>